package com.chixing.day09_innerclass.innerclass;


import com.zuoye.day08.CompanyOrder;
import com.zuoye.day08.Order;
import com.zuoye.day08.OrderApi;
import com.zuoye.day08.PersonalOrder;

public class InnerTest {
    Order o1 = new PersonalOrder();

    OrderApi orderApi = new PersonalOrder();//创建接口对象: ---子类对象 PersonalOrder{实现接口中的方法}

    OrderApi orderApi2 = new CompanyOrder();//创建接口对象 ---子类对象 CompanyOrder{实现接口中的方法}

    //创建接口对象: ----子类对象【匿名对象】{实现接口中的方法}

    OrderApi orserApi3 = new OrderApi() {
        @Override
        public Order orderClone() {
            return null;
        }
    };


}
